package factory.methodfactory.order;

import factory.methodfactory.dumpling.BeiJingBaiCaiDumpling;
import factory.methodfactory.dumpling.BeiJingJiuCaiDumpling;
import factory.methodfactory.dumpling.Dumpling;

public class BeiJingOrder extends OrderDumpling {


    @Override
    Dumpling createDumpling(String orderType) {
        Dumpling dumpling = null;
        if ("baicai".equals(orderType)) {
            dumpling = new BeiJingBaiCaiDumpling();
        }else if("jiucai".equals(orderType)){
            dumpling = new BeiJingJiuCaiDumpling();
        }
        return dumpling;
    }
}
